/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cmb.chat;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author jameseaton
 */

public class Topic {

    private int topicId;
    private String topicName;
    private List<Client> clients;

    public Topic(){
        clients = new ArrayList<Client>();
    }

    public Topic(String topicName){
        this();
        this.topicName = topicName;

    }



    /**
     * @return the topicId
     */
    public int getTopicId() {
        return topicId;
    }

    /**
     * @param topicId the topicId to set
     */
    public void setTopicId(int topicId) {
        this.topicId = topicId;
    }

    /**
     * @return the topicName
     */
    public String getTopicName() {
        return topicName;
    }

    /**
     * @param topicName the topicName to set
     */
    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    /**
     * @return the clients
     */
    public List<Client> getClients() {
        return clients;
    }

    /**
     * @param clients the clients to set
     */
    public void setClients(List<Client> clients) {
        this.clients = clients;
    }

    public void addClient(Client client){
        this.clients.add(client);
    }

    public void removeClient(Client client){
        this.clients.remove(client);
    }

}
